<?php
/**
 * The following variables are available in this template:
 * - $this: the CrudCode object
 */
?>
<?php echo "<?php\n"; ?>
/* @var $this <?php echo $this->getControllerClass(); ?> */
/* @var $data <?php echo $this->getModelClass(); ?> */
?>

<tr>
	<td  width="" class="pl15">
		<?php echo "<?php echo CHtml::checkBox('id[]','',array('class'=>'chk f_l chkitem','onclick'=>'CheckList(\"ids[]\",\"id[]\")','value'=>\$data->{$this->tableSchema->primaryKey}))?>" ?> 
	</td>
<?php
$count=0;
foreach($this->tableSchema->columns as $column)
{
	if($column->isPrimaryKey)
		continue;
	if(++$count==4)
		echo "\t<?php /*\n";
	echo "\t<td width=\"20%\" class=\"\"><?php echo CHtml::encode(\$data->{$column->name}); ?></td>\n";
}
if($count>=4)
	echo "\t*/ ?>\n";
?>
	<td  width="12%" class="">
		<?php echo "<?php echo CHtml::link(Yii::t('cmp','Update'),array('update','id'=>\$data->{$this->tableSchema->primaryKey}),array('class'=>'c_06c'))?>\n" ?>
		<?php echo "<?php echo CHtml::link(Yii::t('cmp','Delete'),'javascript:',array('class'=>'c_06c','onclick'=>'return art_del_confirm(\"'.\$this->pre_module_url.'/'.Yii::app()->getController()->id.'/delete/id/'.\$data->{$this->tableSchema->primaryKey}.'\",\"你确定要删除这条信息吗？\")'))?>\n" ?>
	</td>
</tr>